xend: pci: improve the assignability checking
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 2 Jun 2009 10:50:16 +0000 (11:50 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 2 Jun 2009 10:50:16 +0000 (11:50 +0100)
commit44d374adc01fc7cd3e516d6475dc5e9ddedf928d
tree60166a0ebc4b430642cb19417d5c2fc73ca4622b
parent3b35911d709e100f0855c553adcab5c37b1c02c0
xend: pci: improve the assignability checking

1) fix some small typos in util/pci.py;
2) find_all_the_multi_functions(): BDFs of a multi-function PCIe
device could be different in all the 3 fields (bus, device, function),
so we need self.find_parent() and list all t
he BDFs below the parent;
3) to assign a device of the must-be-co-assigned devices, we require
all the related devices should be owned by pciback;
4) detect and disallow duplicate pci string specified in guest config
file due to carelessness.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/util/pci.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/pciif.py